package physics;

import java.util.List;
import java.util.LinkedList;

/**
 *
 * @author Tomas Zima
 */
public class CollisionChecker
{
	public CollisionChecker()
	{
		 rectanglesOut	= new LinkedList<TRectangle>();
		 rectanglesIn	= new LinkedList<TRectangle>();
	}
	
	public void addRectangleOut(int x, int y, int a, int b)
	{
		this.rectanglesOut.add(new TRectangle(x, y, a, b));
	}
	
	public void addRectangleIn(int x, int y, int a, int b)
	{
		this.rectanglesIn.add(new TRectangle(x, y, a, b));
	}
	
	public boolean isInCollision(TRectangle A, TRectangle B)
	{
		return false;
	}
	
	private List<TRectangle> rectanglesOut;
	private List<TRectangle> rectanglesIn;
}

class TRectangle
{
	public TRectangle(int x, int y, int a, int b)
	{
		this.x = x;
		this.y = y;
		this.a = a;
		this.b = b;
	}
	
	public int getX()
	{
		return x;
	}
	
	public int getY()
	{
		return y;
	}
	
	public int getA()
	{
		return a;
	}
	
	public int getB()
	{
		return b;
	}
	
	private int x;
	private int y;
	private int a;
	private int b;
}
